package r21310.chap06.d1118;

public class student {






        private String name;
        private int chengji;
        private int code;

    @Override
    public String toString() {
        return "姓名："+this.name+"，成绩："+this.chengji+",学号："+this.code;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getChengji() {
        return chengji;
    }

    public void setChengji(int chengji) {
        this.chengji = chengji;
    }

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public student(String name, int chengji, int code) {
        this.name = name;
        this.chengji = chengji;
        this.code = code;
    }
}

